
# 开发

## `ffmpeg`视频功能

前提：如果要启用视频功能，请安装`ffmpeg`，确保`ffmpeg`、`ffprobe`可执行程序在`PATH`下

## 开发环境搭建 

1. `git clone` 这个仓库
2. `npm install` 安装所有依赖
3. 在`config/`下添加一个`config.dev.js`文件，填写相关配置
4. `npm run webpack --watch` 打包前端文件
5. `npm run lessc` 为前台页面编译`css`样式代码
6. `npm run start` 运行即可
7. 访问 `http://localhost:3000/install`，安装数据库、创建管理员、填充基本数据
8. `npm run test` 确保所有测试都通过
